package com.lyx.question.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lyx.question.dto.QuestionResultDto;
import com.lyx.question.entity.Question;
import com.lyx.question.entity.QuestionRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 14667
 * @date 2022/7/26 9:33
 */
@Mapper
public interface QuestionRecordMapper extends BaseMapper<QuestionRecord> {


    List<Question> getCorrectWrongQuestionNum(@Param("start") String start, @Param("end") String end,@Param("from") Integer from,@Param("to") Integer to);

    List<QuestionResultDto> getCorrectingResults(@Param("paperId") Integer paperId);

    Integer getDayRecordsNum(@Param("start") String start,@Param("end") String end);
}
